@extends('layout.index')

@section('title')
<title>修改首页</title>
@endsection


@section('main')

<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span>修改分类</span>
    </div>
    <div class="mws-panel-body no-padding">
        <form class="mws-form" action="/Admin/admincate/update" method="post">
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">分类名称</label>
                    <div class="mws-form-item">
                           
                        <input type="text" name='typename' value= "{{$list->typename}}" class="small">
                    </div>
                </div>              
                <div class="mws-form-row">
                    <label class="mws-form-label">父级分类</label>
                    <div class="mws-form-item">
                        <select class="small" name='pid'>
                            <option value='0'>请选择</option>
                           @foreach($row as $k=>$v)
                            <option value="{{$v->id}}">{{$v->typename}}</option>
                            @endforeach
                          
                        </select>
                    </div>
                </div>
            </div>
            <div class="mws-button-row">

             {{csrf_field()}}
                 <input type="hidden" name="id" value="{{$list->id}}">
                <input type="submit" class="btn btn-danger" value="提交">
                <input type="reset" class="btn " value="重置">
            </div>
        </form>
    </div>      
</div>





@endsection

